<?php

define('AUTH',true);
include "config.php";
include "global.php";
include_once "class_character.php";
include_once "functions.php";
include_once 'include_lang.php';

if ( !$auth ) {
	echo "<html>
		<head>
		<title>$SITETITLE</title>
		<link rel=stylesheet type=text/css href=styles/phaos.css>
		</head>
		<body bottommargin=\"0\" rightmargin=\"0\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">
		<div align=center>
		<br>
		<br>
		<form method=\"POST\" action=\"$_SERVER[PHP_SELF]\">
		<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" width=\"435\" height=\"315\" background=\"images/scroll.png\">
		<tr>
		<td colspan=\"2\" align=center>
		<img src=\"images/login_logo.gif\">
		<p>
		<table cellspacing=0 cellpadding=0 border=0>
		<tr>
		<td align=right><font color=\"black\"><strong>".$lang_aup["user"].": &nbsp</strong></font></td>
		<td><input name=\"PHP_PHAOS_USER\" type=\"text\" value=\"".(@$PHP_PHAOS_USER)."\"></td>
		</tr>
		<tr>
		<td align=right><font color=\"black\"><strong>".$lang_aup["pass"].": &nbsp</strong></font></td>
		<td><input name=\"PHP_PHAOS_PW\" type=\"password\"></td>
		</tr>
		</table>
		<br>
		<input type=\"submit\" value=\"".$lang_aup["login"]."\"> 
		</td> 
		</tr> 
		</table> 
		</form> 
		<p>
		<a href=\"register.php\">".$lang_aup["register"]."</a> 
		<p>
		<small>
		Copyright 2004-".date("Y",time())."
		<br><a href=\"http://worldofphaos.zekewalker.com/\" target=\"_blank\">".$lang_aup["license"]."</a>
		</body> 
		</html>"; 
	exit;
} 
?>
